package com.techwells.applicationMarket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.techwells.applicationMarket.domain.Hot;
import com.techwells.applicationMarket.util.PagingTool;

public interface HotMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Hot record);

    int insertSelective(Hot record);

    Hot selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Hot record);

    int updateByPrimaryKey(Hot record);
    
    /**
     * 根据关键词查询热词榜
     * @param key
     * @return
     */
    Hot selectByKey(String key);

	int countTotal(PagingTool pagingTool);

	List<Hot> selectList(PagingTool pagingTool);
    
}